<table class="show_list">
<div>
<script>
$(document).ready(function(){
	$("#clear").click(function(){
		$("#select_time").val('');
	})

});
</script>
<form action="index.php" method=get name=frm>
<ul>
<li><dl>车牌号：</dl><dl><input type=text name="auto_guest_name" size=30 value='{%$smarty.get.auto_guest_name%}'></dl></li>
<li>
<dl>时间查询</dl>
<dl>
<select name="select">
{%html_options selected=$smarty.get.select options=$select_array%}

</select>
<input id="select_time" type=text class="input_date_select txt-normal" size="12" name="select_time" id="select_time" size=30 value='{%$smarty.get.select_time%}'><span id="clear">清空</span>
<script>
		Calendar.setup({
			inputField     :    "select_time",   // id of the input field
			ifFormat       :    "%Y-%m-%d",       // format of the input field
			showsTime      :    false,
			timeFormat     :    "24"
		});
		</script>
</li>
<dl>
<li><input type=submit value="查询"><input type=hidden name='c' value='auto_info'></li>
</ul>
</form>

</div>
<div>10日后到期车辆提醒</div>
<table>
	<tr class="show_title">
				<td>车牌号</td>
				<td>客户</td>
				<td>年审时间</td>
				<td>运营年审</td>
				<td>二保1</td>
				<td>二保2</td>
				<td>二保3</td>
				<td>保险时间</td>
				<td>服务费</td>
				<td>合同时间</td>
				<td>操作</td>
	</tr>
	{%foreach from=$arr.0 item=arr_item%}
	<tr>
				<td>{%$arr_item.auto_brand%}</td>
				<td>{%$arr_item.auto_guest_name%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_year_time open_date=$red_time.0%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_year_pay_time open_date=$red_time.0%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_two_insurance open_date=$red_time.0%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_two_insurance2 open_date=$red_time.0%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_two_insurance3 open_date=$red_time.0%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_insurance open_date=$red_time.0%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_server_time open_date=$red_time.0%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_contract open_date=$red_time.0%}</td>
				<td>
		<a href='index.php?c=auto_info&m=edit&is_show=1&auto_id={%$arr_item.auto_id%}'>查看</a>&nbsp;&nbsp;
		<!--<a href='index.php?c=auto_info&m=edit&auto_id={%$arr_item.auto_id%}'>修改</a>&nbsp;&nbsp;
		<a href='index.php?c=auto_info&m=del&auto_id={%$arr_item.auto_id%}'>删除</a>-->
		</td>
	</tr>
	{%/foreach%}
</table>

<div>3日后到期车辆提醒</div>
<table>
	<tr class="show_title">
				<td>车牌号</td>
				<td>客户</td>
				<td>年审时间</td>
				<td>运营年审</td>
				<td>二保1</td>
				<td>二保2</td>
				<td>二保3</td>
				<td>保险时间</td>
				<td>服务费</td>
				<td>合同时间</td>
				<td>操作</td>
	</tr>
	{%foreach from=$arr.1 item=arr_item%}
	<tr>
				<td>{%$arr_item.auto_brand%}</td>
				<td>{%$arr_item.auto_guest_name%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_year_time open_date=$red_time.1%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_year_pay_time open_date=$red_time.1%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_two_insurance open_date=$red_time.1%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_two_insurance2 open_date=$red_time.1%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_two_insurance3 open_date=$red_time.1%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_insurance open_date=$red_time.1%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_server_time open_date=$red_time.1%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_contract open_date=$red_time.1%}</td>
				<td>
		<a href='index.php?c=auto_info&m=edit&is_show=1&auto_id={%$arr_item.auto_id%}'>查看</a>&nbsp;&nbsp;
		<!--<a href='index.php?c=auto_info&m=edit&auto_id={%$arr_item.auto_id%}'>修改</a>&nbsp;&nbsp;
		<a href='index.php?c=auto_info&m=del&auto_id={%$arr_item.auto_id%}'>删除</a>-->
		</td>
	</tr>
	{%/foreach%}
</table>

<div><font color="red">1日后到期车辆提醒</font></div>
<table>
	<tr class="show_title">
				<td>车牌号</td>
				<td>客户</td>
				<td>年审时间</td>
				<td>运营年审</td>
				<td>二保1</td>
				<td>二保2</td>
				<td>二保3</td>
				<td>保险时间</td>
				<td>服务费</td>
				<td>合同时间</td>
				<td>操作</td>
	</tr>
	{%foreach from=$arr.2 item=arr_item%}
	<tr>
				<td>{%$arr_item.auto_brand%}</td>
				<td>{%$arr_item.auto_guest_name%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_year_time open_date=$red_time.2%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_year_pay_time open_date=$red_time.2%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_two_insurance open_date=$red_time.2%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_two_insurance2 open_date=$red_time.2%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_two_insurance3 open_date=$red_time.2%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_insurance open_date=$red_time.2%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_server_time open_date=$red_time.2%}</td>
				<td>{%bijiao_date the_date=$arr_item.auto_contract open_date=$red_time.2%}</td>
				<td>
		<a href='index.php?c=auto_info&m=edit&is_show=1&auto_id={%$arr_item.auto_id%}'>查看</a>&nbsp;&nbsp;
		<!--<a href='index.php?c=auto_info&m=edit&auto_id={%$arr_item.auto_id%}'>修改</a>&nbsp;&nbsp;
		<a href='index.php?c=auto_info&m=del&auto_id={%$arr_item.auto_id%}'>删除</a>-->
		</td>
	</tr>
	{%/foreach%}
</table>